
import axios from 'axios';

// 导出一个promise对像
export default     function request(Id) {
           return   axios({
                  url: "https://m.maizuo.com/gateway?cityId=" + Id,
                  headers: {
                    "X-Host":"mall.film-ticket.cinema.list",
                    "X-Client-Info": `{"a":"3000","ch":"1002","v":"5.0.4","e":"1632883373297662708449281","bc":"110100"}`
                  },
                  method: "get"
                }).then(function (response) {
                   return response.data.data.cinemas
                })
                .catch(function (error) {
                  console.log(error);
                });
            }



